Automattic\WooCommerce\Blocks\AIContent\UpdateProducts A

Total Complexity 65
Dependencies 4
Dependents 5
Total lines 502
Lines of code 266
Logical lines of code 168
Comment lines 113
Methods 14
Properties 0

Methods 14

Method Rating Maintainability Complexity Lines of code
assign_ai_generated_content_to_dummy_products()
B
38 17 71
fetch_dummy_products_to_update()
A
47 8 37
update_product_content()
A
56 8 17
generate_content()
S
53 6 23
should_update_dummy_product()
S
54 6 20
assign_ai_selected_images_to_dummy_products()
S
53 3 22
create_new_product()
S
58 3 14
reset_products_content()
S
58 3 14
product_update()
S
59 2 14
fetch_product_ids()
S
66 2 7
get_hash_for_product()
S
70 2 6
get_hash_for_ai_modified_product()
S
70 2 6
create_hash_for_ai_modified_product()
S
68 2 7
product_image_upload()
S
66 1 8